// 环境配置工具函数

// 获取当前环境
export const getEnvironment = (): 'development' | 'test' | 'production' => {
    const mode = import.meta.env.MODE
    if (mode === 'production') return 'production'
    if (mode === 'test') return 'test'
    return 'development'
}


// 获取 devModel 配置
export const getDevModel = (): string => {
    const env = getEnvironment()
    const devModels = {
        development: 'test',
        test: 'test',
        production: 'offical'
    }
    return devModels[env]
}


